package com.landian.commons.base.page;

import com.landian.commons.base.annotation.Transient;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caojl
 * @date: 2019-10-06
 * @time: 23:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SortRequest implements SortAble{

    public static SortRequest newInstance(String sortOrder, String sortName){
        return new SortRequest(sortOrder,sortName);
    }

    /**
     * 排序规则
     */
    @Transient
    private String sortOrder;

    /**
     * 排序属性
     */
    @Transient
    private String sortName;
}
